import request from '@/utils/request'

// 查询carmi列表
export function listCarmi(query) {
  return request({
    url: '/vpn/carmi/list',
    method: 'get',
    params: query
  })
}

// 查询carmi详细
export function getCarmi(carmiId) {
  return request({
    url: '/vpn/carmi/' + carmiId,
    method: 'get'
  })
}

// 新增carmi
export function addCarmi(data) {
  return request({
    url: '/vpn/carmi',
    method: 'post',
    data: data
  })
}

// 修改carmi
export function updateCarmi(data) {
  return request({
    url: '/vpn/carmi',
    method: 'put',
    data: data
  })
}

// 删除carmi
export function delCarmi(carmiId) {
  return request({
    url: '/vpn/carmi/' + carmiId,
    method: 'delete'
  })
}